package components
{
	import SEApp.dialogs.se_alert;
	import SEApp.se_util;
	
	import UIFree.uif_component;
	
	import flash.display.Bitmap;
	import flash.geom.Rectangle;

	public class clt_victoryWindow extends se_alert {
		public function clt_victoryWindow(parent:uif_component, a_title: String, message:String, vicBmp: Bitmap) {
			super(parent, message, null, false, vicBmp.width + 20, vicBmp.height + se_util.DEFHEIGHTBUTTON + 90);
			title.text = a_title;
			var rect: Rectangle = getInner();
			vicBmp.x = rect.x;
			vicBmp.y = rect.y + 60;
			addChild(vicBmp);
		}
		
		override protected function resizeFromText(): Rectangle {
			resizeText();
			return getInner();
		}
		
	}
}